import ajax from './index'



export function qa_cat_list(condition) {
    return ajax({
        url: "/backend/qa/cat_list",
        method: "get",
        params: condition
    });
}

export function qa_cat_add(param) {
    return ajax({
        url: "/backend/qa/cat_create",
        method: "post",
        data: param
    });
}

export function qa_cat_edit(id, param) {
    return ajax({
        url: "/backend/qa/cat_update/" + id,
        method: "post",
        data: param
    });
}

export function qa_cat_del(id) {
    return ajax({
        url: "/backend/qa/cat_delete?ids=" + id,
        method: "post"
    });
}

export function qa_cat_detail(id) {
    return ajax({
        url: "/backend/qa/cat_detail/" + id,
        method: "get"
    });
}